/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.deployment.servicoimpl;

import br.com.deployment.dao.AreaInterpiDao;
import br.com.deployment.entidade.registroimovel.AreaInterpi;
import br.com.deployment.interfaces.AreaInterpiDaoIn;
import br.com.deployment.servico.AreaInterpiServico;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;

/**
 *
 * @author roniere
 */
@Stateless
@LocalBean
public class AreaInterpiServicoImpl implements AreaInterpiServico{

    @EJB
    AreaInterpiDaoIn areaInterpiDao;
    
    @Override
    public Boolean exist(int id) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void save(AreaInterpi entity) {
        areaInterpiDao.save(entity);
    }

    @Override
    public void delete(AreaInterpi entity) {
        areaInterpiDao.delete(entity);
    }

    @Override
    public AreaInterpi update(AreaInterpi entity) {
        return areaInterpiDao.update(entity);
    }

    @Override
    public AreaInterpi find(int entityID) {
        return areaInterpiDao.find(entityID);
    }
    
     public List<AreaInterpi> findAll() {
        return areaInterpiDao.findAll();
    }
    
}
